  /**
 * 以下所有数值均可在 OSS 上配置 json文件 详情见 ossService.ts
 * */

import { IGameModeNumberMap } from "../../Game/Interface";

//小游戏跳转信息
export interface JumpMiniGameConfig {
  //
  appId: string;
  //
  iconId: string;
  //
  name: string;
}

export default class {
  /** 数值配置 start **/
  static readonly COPY: string = "@长沙零一互动";
  //游戏名字
  static readonly GAME_NAME: string = "图文世界";
  //跳转小游戏列表 格子 目前只支持微信
  static readonly MINI_GAME_JUMP_CELL_LIST: JumpMiniGameConfig[] = [
    { name: "-老乡你要啥", iconId: "lxnys", appId: "wxc7d2241fc9e870aa" },
    { name: "-我是医生", iconId: "wsys", appId: "wx75542a90a4f3b540" },
  ];
  //跳转小游戏列表 滚动 目前只支持微信
  static readonly MINI_GAME_JUMP_SCROLL_LIST: JumpMiniGameConfig[] = [
    { name: "-老乡你要啥", iconId: "lxnys", appId: "wxc7d2241fc9e870aa" },
    { name: "-我是医生1", iconId: "wsys", appId: "wx75542a90a4f3b540" },
  ];
  //跳转小游戏列表 侧拉栏 目前只支持微信
  static readonly MINI_GAME_JUMP_SIDE_LIST: JumpMiniGameConfig[] = [
    { name: "-老乡你要啥", iconId: "lxnys", appId: "wxc7d2241fc9e870aa" },
    { name: "-我是医生1", iconId: "wsys", appId: "wx75542a90a4f3b540" },
    { name: "-老乡你要啥", iconId: "lxnys", appId: "wxc7d2241fc9e870aa" },
    { name: "-我是医生2", iconId: "wsys", appId: "wx75542a90a4f3b540" },
    { name: "-老乡你要啥", iconId: "lxnys", appId: "wxc7d2241fc9e870aa" },
    { name: "-我是医生3", iconId: "wsys", appId: "wx75542a90a4f3b540" },
    { name: "-老乡你要啥", iconId: "lxnys", appId: "wxc7d2241fc9e870aa" },
    { name: "-我是医生4", iconId: "wsys", appId: "wx75542a90a4f3b540" },
    { name: "-老乡你要啥", iconId: "lxnys", appId: "wxc7d2241fc9e870aa" },
    { name: "-我是医生5", iconId: "wsys", appId: "wx75542a90a4f3b540" },
    { name: "-老乡你要啥", iconId: "lxnys", appId: "wxc7d2241fc9e870aa" },
    { name: "-我是医生6", iconId: "wsys", appId: "wx75542a90a4f3b540" },
    { name: "-老乡你要啥", iconId: "lxnys", appId: "wxc7d2241fc9e870aa" },
    { name: "-我是医生7", iconId: "wsys", appId: "wx75542a90a4f3b540" },
    { name: "-老乡你要啥", iconId: "lxnys", appId: "wxc7d2241fc9e870aa" },
    { name: "-我是医生8", iconId: "wsys", appId: "wx75542a90a4f3b540" },
  ];
  //分享录屏描述
  static readonly GAME_VIDEO_SHARE_DESC: string = "图文世界";
  //分享录屏标题
  static readonly GAME_VIDEO_SHARE_TITLE: string = "图文世界";
  //版本公告
  static readonly VERSION_NOTICE: string = "";
  //默认体力/最大体力
  static readonly MAX_POWER: number = 10;
  //初始化力
  static readonly NORMAL_POWER: number = 10;
  //初始金币
  static readonly NORMAL_COINS: number = 0;
  //观看视频获得体力
  static readonly ADD_ONCE_POWER: number = 10;
  //观看视频获得金币
  static readonly ADD_ONCE_COINS: number = 1;
  //体力恢复周期时间 秒
  static readonly REST_POWER_TIME: number = 1800;
  //体力恢复周期 恢复量
  static readonly REST_POWER_VALUE: number = 1;
  //第一次进入游戏弹出无限体力概率
  static readonly FIRST_PLAY_INFINITY_PROBABILITY: number = 0;
  //无限体力看视频次数
  static readonly INFINTY_VIDEO_TIME: number = 3;
  //  无限体力的持续时间
  static readonly INFINITY_POWER_VIDEO_HAND_TIME: number = 30;
  //点击添加体力弹出无限体力概率
  static readonly CLICK_POWER_INFINITY_PROBABILITY: number = 0;
  //启用日志服务
  static readonly LOG_SERVICE_OPEN: boolean = false;
  //屏幕日志开关
  static readonly SCREEN_LOG_SWITCH: boolean = false;
  //打印日志等级 [0-5 对应  debug,log,info,warn,error,empty]
  static readonly CONSOLE_LOG_LEVEL: number = 0;

  //废弃功能****************
  //新手保护时间
  static readonly FIRST_VIDEO_TIME: number = 0;
  //废弃功能***************

  //地区屏蔽 "北京","上海","深圳","广州","重庆","天津","杭州","南京","成都","长沙"
  static readonly IP_BLOCK_CITY: string[] = [];

  //抖音预埋
  static readonly DOUYIN_YUMAI: number = 0;

  /**
   * 游戏相关分隔
   */

  static readonly MODE_POWER: IGameModeNumberMap = {
    0: 1,
    1: 1,
    3: 1,
    4: 1,
    5: 1,
    6: 1,
    7: 1,
    8: 1,
  };
  //TODO 新模式请看这里
  /** 各模式广告观看次数 */
  static readonly MODE_VIDEO_COUNT: IGameModeNumberMap = {
    0: 1,
    1: 1,
    3: 1,
    4: 1,
    5: 1,
    6: 1,
    7: 1,
    8: 1,
  };
  //TODO 新模式请看这里
  static readonly MENU_SHOW_MODE: number[] = [];

  static readonly VIDIOCONTR: number = 1; //视频开关控制
}
